package test

object test11 {

  def main(args: Array[String]): Unit = {
    val x1 = "M. sativa \t\t\t\t\t\t\t\t\tM. truncatula\t\t\t\t\t\t\t\t\nLeaf\t\t\ttaproot\t\t\tfibrous root\t\t\tLeaf\t\t\ttaproot\t\t\tfibrous root\t\t\nControl\tMD\tSD\tControl\tMD\tSD\tControl\tMD\tSD\tControl\tMD\tSD\tControl\tMD\tSD\tControl\tMD\tSD"


    val line = x1.split("\n").map(_.split("\t").map(_.trim).filter(_!=""))

    line(2).zipWithIndex.foreach{x=>

      val l1 = line.head(x._2/9)
      val l2 = line(1)(x._2/3)

      print("\"" +l1 + " " + l2 + " " + x._1 +"\",")

    }


  }
}
